A quickselect algorithm adapted from Rust's implementation of the pdqsort algorithm.
NOTE: you may want to use Rust's official version of this algorithm, select_nth_unstable_by
A quickselect algorithm adapted from Rust's implementation of the pdqsort algorithm.
NOTE: you may want to use Rust's official version of this algorithm, select_nth_unstable_by